package View;

import java.awt.Point;

import javax.swing.JButton;

import Controller.ButtonHandler;

/**
 * Represents the buttons used in the games
 * 
 * @author Samual
 * @version 5
 */
public class GameButton extends JButton {

	 private Point coordinates = new Point();

	    /**
	     * Constructor for objects of class PacButton
	     */
	    public GameButton(int x,int y) {
	        // initialise instance variables
	        coordinates.x = x;
	        coordinates.y = y;
	        this.setVisible(true);
	    }

	    /**
	     * An example of a method - replace this comment with your own
	     * 
	     * @param  y   a sample parameter for a method
	     * @return     the sum of x and y 
	     */
	    public Point getCoord() {
	        // put your code here
	        return coordinates;
	    }
}
